package com.example.mymvp_2.Bean;

import java.util.List;

public class Weather {

    @Override
    public String toString() {
        return "Weather{" +
                "code=" + code +
                ", citynm='" + citynm + '\'' +
                ", cityno='" + cityno + '\'' +
                ", data=" + data.toString() +
                '}';
    }

    /**
     * code : 200
     * citynm : 北京
     * cityno : beijing
     * data : [{"days":"2020-04-13","week":"星期一","temperature":"25℃/10℃","weather":"晴","weather_icon":"http://api.k780.com/upload/weather/d/0.gif","wind":"南风转西南风"},{"days":"2020-04-14","week":"星期二","temperature":"25℃/12℃","weather":"多云","weather_icon":"http://api.k780.com/upload/weather/d/1.gif","wind":"南风"},{"days":"2020-04-15","week":"星期三","temperature":"24℃/11℃","weather":"多云转小雨","weather_icon":"http://api.k780.com/upload/weather/d/1.gif","wind":"东风"},{"days":"2020-04-16","week":"星期四","temperature":"21℃/10℃","weather":"多云","weather_icon":"http://api.k780.com/upload/weather/d/1.gif","wind":"东风转北风"},{"days":"2020-04-17","week":"星期五","temperature":"23℃/9℃","weather":"晴","weather_icon":"http://api.k780.com/upload/weather/d/0.gif","wind":"北风转西南风"},{"days":"2020-04-18","week":"星期六","temperature":"22℃/12℃","weather":"多云转小雨","weather_icon":"http://api.k780.com/upload/weather/d/1.gif","wind":"南风转西南风"}]
     */

    private int code;
    private String citynm;
    private String cityno;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getCitynm() {
        return citynm;
    }

    public void setCitynm(String citynm) {
        this.citynm = citynm;
    }

    public String getCityno() {
        return cityno;
    }

    public void setCityno(String cityno) {
        this.cityno = cityno;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        @Override
        public String toString() {
            return "DataBean{" +
                    "days='" + days + '\'' +
                    ", week='" + week + '\'' +
                    ", temperature='" + temperature + '\'' +
                    ", weather='" + weather + '\'' +
                    ", weather_icon='" + weather_icon + '\'' +
                    ", wind='" + wind + '\'' +
                    '}';
        }

        /**
         * days : 2020-04-13
         * week : 星期一
         * temperature : 25℃/10℃
         * weather : 晴
         * weather_icon : http://api.k780.com/upload/weather/d/0.gif
         * wind : 南风转西南风
         */

        private String days;
        private String week;
        private String temperature;
        private String weather;
        private String weather_icon;
        private String wind;

        public String getDays() {
            return days;
        }

        public void setDays(String days) {
            this.days = days;
        }

        public String getWeek() {
            return week;
        }

        public void setWeek(String week) {
            this.week = week;
        }

        public String getTemperature() {
            return temperature;
        }

        public void setTemperature(String temperature) {
            this.temperature = temperature;
        }

        public String getWeather() {
            return weather;
        }

        public void setWeather(String weather) {
            this.weather = weather;
        }

        public String getWeather_icon() {
            return weather_icon;
        }

        public void setWeather_icon(String weather_icon) {
            this.weather_icon = weather_icon;
        }

        public String getWind() {
            return wind;
        }

        public void setWind(String wind) {
            this.wind = wind;
        }
    }
}
